(help-fns-function-name): New function
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Mar 2024 23:40:20 +0000 (19:40 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Mar 2024 23:40:20 +0000 (19:40 -0400)
commita1f8702e8345254e6898d35e554bdc06ab09c3ca
tree1f8f71d5900b218a9236f350ee5c15903bd6196c
parent946280365d40104dffd5329eebefc02329f72041
(help-fns-function-name): New function

Consolidate code used in profiler and help--describe-command,
and improve it while we're at it.
Also use #' to quote a few function names along the way.

* lisp/help-fns.el (help-fns--function-numbers, help-fns--function-names):
New vars.
(help-fns--display-function): New aux function.
(help-fns-function-name): New function, inspired from
`help--describe-command`.

* lisp/help.el (help--describe-command): Use `help-fns-function-name`.
(help--for-help-make-sections): Remove redundant "" arg to `mapconcat`.

* lisp/profiler.el (profiler-format-entry, profiler-fixup-entry):
Delete functions.
(profiler-report-make-entry-part): Use `help-fns-function-name` instead.
(profiler-report-find-entry): Use `push-button`.

* lisp/transient.el (transient--debug): Use `help-fns-function-name`
when available.
etc/NEWS
lisp/bind-key.el
lisp/help-fns.el
lisp/help.el
lisp/profiler.el
lisp/transient.el